<?php
namespace app\home\model;
use think\Model;
class History extends Model
{
    //主表浏览历史关联
    public function article()
    {
        return $this->hasOne('article','id','article_id');
    }
}
